package demo1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double d = input.nextDouble();
        int d1 = (int)d;
        double a = d - d1;
        a *= 10;
        if (a >= 5) {
            d1 += 1;
            System.out.println(d1);
        }else {
            System.out.println(d1);
        }





    }
}
